﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Framework.Communication.Messages.Adapters;

namespace PSE.Framework.Communication.Adapters.File
{
    public class FileOpenedEventArgs : FileEventArgs
    {
        public FileOpenedEventArgs(StreamOpenedEventArgs e)
            : base((string)e.Message)
        {
            if (e != null)
            {
                _action = e.Action;
                _recordCount = e.MessageCount;
            }
        }

        private string _action = null;
        /// <summary>
        /// Action da mensagem
        /// </summary>
        public string Action
        {
            get { return _action; }
        }

        private int _recordCount;
        /// <summary>
        /// Número de linhas
        /// </summary>
        public int RecordCount
        {
            get { return _recordCount; }
        }
    }
}
